package com.zx.zxblog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zx.zxblog.entity.dto.LoginDTO;
import com.zx.zxblog.entity.pojo.User;
import com.zx.zxblog.util.R;

import javax.servlet.http.HttpSession;

public interface UserService extends IService<User> {

    User checkUser(String username,String password);

    /**
     * 登录
     * @param loginDTO
     * @return
     */
    R login(LoginDTO loginDTO, HttpSession session);
}
